package com.susallwave.srcb.service.sys;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.susallwave.srcb.entity.sys.RolePermission;
import com.susallwave.srcb.response.Result;

import java.util.List;

/**
 * <p>
 * 角色权限关系表 服务类
 * </p>
 *
 * @author MyBatisPlusGenerator
 * @since 2025-07-20
 */
public interface RolePermissionService extends IService<RolePermission> {

    List<RolePermission> rolePermissions(String roleCode);

    Result<IPage<RolePermission>> listPermissions(int pageNum, int pageSize, String roleCode, String permissionCode);

    Result<Void> setPermissions(String roleCode, List<String> permissionCode);
}
